package com.cskaoyan.mall.model.vo;

import java.sql.Date;

public class noReplyMsgVO {
    private Integer id;
    private Integer userId;
    private Integer goodsId;
    private String content;
    private String replyContent;

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    private Integer state;
    private Date createtime;
    private ReplyGoodsVO goods = new ReplyGoodsVO();
    private ReplyUserVO user = new ReplyUserVO();

    public void setGoodsName(String goodsName){
        goods.setName(goodsName);
    }

    public void setUserName(String userName){
        user.setName(userName);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public ReplyGoodsVO getGoods() {
        return goods;
    }

    public void setGoods(ReplyGoodsVO goods) {
        this.goods.setName(goods.getName());
    }

    public ReplyUserVO getUser() {
        return user;
    }

    public void setUser(ReplyUserVO user) {
        //传入ReplyUserVO对象，就会执行
        this.user.setName(user.getName());
    }
}
